//
//  SelectOrderView.h
//  OrderSeat
//
//  Created by wangwei on 13-10-23.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SelectOrderViewDelegate

@optional
- (void)selectOrderFinished:(NSDictionary *)selectedData;

@end

@class SelectOrderDataSource;
@interface SelectOrderView : UIView

@property(nonatomic, strong)UITableView *orderTable;
@property(nonatomic, weak)id<SelectOrderViewDelegate> delegate;
@property(nonatomic, strong)SelectOrderDataSource *dataSource;
@property(nonatomic, assign)CGFloat viewHeight;

- (void)resetAttributesWithTop:(CGFloat)height;
- (void)showOrVisible;
- (void)hidden;

@end

@interface SelectOrderDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) SelectOrderView *view;
@property (nonatomic, strong) NSMutableArray *orderList;

- (id)initWithView:(id)view;

@end

